package day11.service.impl;import day11.service.UserLoginService;import org.apache.commons.lang3.StringUtils;import java.util.concurrent.TimeUnit;/** * @Auther: sky * @Date: 2019/3/14 22:14 * @Description: */public class UserLoginServiceImpl implements UserLoginService {    @Override    public void login(String name, String password) {        if (name.equals("sky")) {            System.out.println("登陆成功，线程" + Thread.currentThread().getName() + "获取当前锁"); //打印当前锁的名称        } else {            System.out.println("登陆失败，线程" + Thread.currentThread().getName());        }    }}